package com.wish.blessingroad.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 收货地址表
 * </p>
 *
 * @author dhc
 * @since 2019-02-18
 */
@Data
@Accessors(chain = true)
@TableName("u_address")
public class UAddress extends Model<UAddress> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 收货地址
     */
    private String userAddress;
    /**
     * 收货姓名
     */
    private String userName;
    /**
     * 收货电话
     */
    private String userPhone;


    /**
     * 指定主键
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public static final String ID = "id";
    public static final String USER_ID = "user_id";
    public static final String USER_ADDRESS = "user_address";
    public static final String USER_NAME = "user_name";
    public static final String USER_PHONE = "user_phone";

}
